﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Microsoft.Practices.EnterpriseLibrary.PolicyInjection;

namespace WinformTest
{
    public partial class Form2 : Form
    {
        public Form2()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            //var newFrm = new Form1();

            var frm = PolicyInjection.Create<Form1>();
            
            //frm.button1_Click(this,null);

            frm.Show();
        }
    }
}
